# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>

pkgname=yadm
pkgver=3.2.2
pkgrel=1
pkgdesc="Yet Another Dotfiles Manager"
arch="noarch"
url="https://github.com/TheLocehiliosan/yadm"
license="GPL-3.0-only"
depends="
	bash
	git
	gawk
	"
options="!check" # No testsuite
subpackages="
	$pkgname-bash-completion
	$pkgname-doc
	$pkgname-fish-completion
	$pkgname-zsh-completion
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/TheLocehiliosan/yadm/archive/$pkgver.tar.gz"

package() {
	install -vDm755 yadm -t "$pkgdir/usr/bin"
	install -vDm644 yadm.1 -t "$pkgdir/usr/share/man/man1"
	install -vDm644 completion/bash/yadm -t "$pkgdir/usr/share/bash-completion/completions"
	install -vDm644 completion/zsh/_yadm -t "$pkgdir/usr/share/zsh/site-functions"
	install -vDm644 completion/fish/yadm.fish -t "$pkgdir/usr/share/fish/vendor_completions.d"
}

sha512sums="
c61da3f644c2f587079fd717d4ef566861f20224f287906ef5b6d07169bc5f02aef7974afd8d4441267a92417a4fd0c7edda562b8f0cf2fc104c91fc0f5f85ff  yadm-3.2.2.tar.gz
"
